<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Jetson Inference: WebRTCServer Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NVLogo_2D.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Jetson Inference
   </div>
   <div id="projectbrief">DNN Vision Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classWebRTCServer.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-static-methods">Static Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classWebRTCServer-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">WebRTCServer Class Reference<div class="ingroups"><a class="el" href="group__util.html">Utilities Library (jetson-utils)</a> &raquo; <a class="el" href="group__network.html">Networking</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>WebRTC signalling server for establishing and negotiating connections with peers for bi-directional media streaming.  
 <a href="classWebRTCServer.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="WebRTCServer_8h_source.html">WebRTCServer.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structWebRTCServer_1_1HttpRoute.html">HttpRoute</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structWebRTCServer_1_1WebsocketRoute.html">WebsocketRoute</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a87c958251b5146e420439d6cd0ed2867"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#a87c958251b5146e420439d6cd0ed2867">WebsocketListener</a>) (<a class="el" href="structWebRTCPeer.html">WebRTCPeer</a> *peer, const char *message, size_t message_size, void *user_data)</td></tr>
<tr class="memdesc:a87c958251b5146e420439d6cd0ed2867"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function pointer to a callback for handling websocket requests.  <a href="classWebRTCServer.html#a87c958251b5146e420439d6cd0ed2867">More...</a><br /></td></tr>
<tr class="separator:a87c958251b5146e420439d6cd0ed2867"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a9229009aca73f62c363f879255bb38"><td class="memItemLeft" align="right" valign="top">typedef SoupServerCallback&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#a0a9229009aca73f62c363f879255bb38">HttpListener</a></td></tr>
<tr class="memdesc:a0a9229009aca73f62c363f879255bb38"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function pointer to a callback for handling HTTP requests.  <a href="classWebRTCServer.html#a0a9229009aca73f62c363f879255bb38">More...</a><br /></td></tr>
<tr class="separator:a0a9229009aca73f62c363f879255bb38"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aeb70147a334c7f4aa526523707d316b9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#aeb70147a334c7f4aa526523707d316b9">Release</a> ()</td></tr>
<tr class="memdesc:aeb70147a334c7f4aa526523707d316b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Release a reference to the server instance.  <a href="classWebRTCServer.html#aeb70147a334c7f4aa526523707d316b9">More...</a><br /></td></tr>
<tr class="separator:aeb70147a334c7f4aa526523707d316b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d584e6f650648aad396f1873984c621"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#a5d584e6f650648aad396f1873984c621">AddRoute</a> (const char *path, <a class="el" href="classWebRTCServer.html#a0a9229009aca73f62c363f879255bb38">HttpListener</a> callback, void *user_data=NULL, uint32_t flags=0)</td></tr>
<tr class="memdesc:a5d584e6f650648aad396f1873984c621"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register a function to handle incoming http/www requests at the specified path.  <a href="classWebRTCServer.html#a5d584e6f650648aad396f1873984c621">More...</a><br /></td></tr>
<tr class="separator:a5d584e6f650648aad396f1873984c621"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab690301a156ea291d47c93a37d84ecb9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#ab690301a156ea291d47c93a37d84ecb9">AddRoute</a> (const char *path, <a class="el" href="classWebRTCServer.html#a87c958251b5146e420439d6cd0ed2867">WebsocketListener</a> callback, void *user_data=NULL, uint32_t flags=0)</td></tr>
<tr class="memdesc:ab690301a156ea291d47c93a37d84ecb9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register a function to handle incoming Websocket requests at the specified path.  <a href="classWebRTCServer.html#ab690301a156ea291d47c93a37d84ecb9">More...</a><br /></td></tr>
<tr class="separator:ab690301a156ea291d47c93a37d84ecb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3927daf271af5dead4f21a9a2ff1ac3"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#ad3927daf271af5dead4f21a9a2ff1ac3">GetSTUNServer</a> () const</td></tr>
<tr class="memdesc:ad3927daf271af5dead4f21a9a2ff1ac3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the STUN server being used.  <a href="classWebRTCServer.html#ad3927daf271af5dead4f21a9a2ff1ac3">More...</a><br /></td></tr>
<tr class="separator:ad3927daf271af5dead4f21a9a2ff1ac3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adbcd3355338382847a31e5e49f5caf97"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#adbcd3355338382847a31e5e49f5caf97">HasHTTPS</a> () const</td></tr>
<tr class="memdesc:adbcd3355338382847a31e5e49f5caf97"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return true if the server is using HTTPS.  <a href="classWebRTCServer.html#adbcd3355338382847a31e5e49f5caf97">More...</a><br /></td></tr>
<tr class="separator:adbcd3355338382847a31e5e49f5caf97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32e99e59a4d0c536e7edcfbbd2dcdaee"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#a32e99e59a4d0c536e7edcfbbd2dcdaee">IsThreaded</a> () const</td></tr>
<tr class="memdesc:a32e99e59a4d0c536e7edcfbbd2dcdaee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return true if the server is running in it's own thread.  <a href="classWebRTCServer.html#a32e99e59a4d0c536e7edcfbbd2dcdaee">More...</a><br /></td></tr>
<tr class="separator:a32e99e59a4d0c536e7edcfbbd2dcdaee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac49ab53764ab184efe91a8c7040be7dc"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#ac49ab53764ab184efe91a8c7040be7dc">ProcessRequests</a> (bool blocking=false)</td></tr>
<tr class="memdesc:ac49ab53764ab184efe91a8c7040be7dc"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classProcess.html" title="Static functions for retrieving information about the running process.">Process</a> incoming requests on the server.  <a href="classWebRTCServer.html#ac49ab53764ab184efe91a8c7040be7dc">More...</a><br /></td></tr>
<tr class="separator:ac49ab53764ab184efe91a8c7040be7dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a49631104e63bd4368ecb0217c402b4e7"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classWebRTCServer.html">WebRTCServer</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#a49631104e63bd4368ecb0217c402b4e7">Create</a> (uint16_t port=<a class="el" href="group__network.html#ga0168a2334e9e1e13b83a665c8cce0742">WEBRTC_DEFAULT_PORT</a>, const char *stun_server=<a class="el" href="group__network.html#ga99b10c89b7c09a0c753f241f9e74c894">WEBRTC_DEFAULT_STUN_SERVER</a>, const char *ssl_cert=NULL, const char *ssl_key=NULL, bool threaded=true)</td></tr>
<tr class="memdesc:a49631104e63bd4368ecb0217c402b4e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a WebRTC server on this port.  <a href="classWebRTCServer.html#a49631104e63bd4368ecb0217c402b4e7">More...</a><br /></td></tr>
<tr class="separator:a49631104e63bd4368ecb0217c402b4e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a91c2b446fe98224e7bd66693ccd19e21"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#a91c2b446fe98224e7bd66693ccd19e21">WebRTCServer</a> (uint16_t port, const char *stun_server, const char *ssl_cert_file, const char *ssl_key_file, bool threaded)</td></tr>
<tr class="separator:a91c2b446fe98224e7bd66693ccd19e21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59493ccab3274ddd2930e903ba770f1d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#a59493ccab3274ddd2930e903ba770f1d">~WebRTCServer</a> ()</td></tr>
<tr class="separator:a59493ccab3274ddd2930e903ba770f1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed89521ec525e2a3c24757d2444f388d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#aed89521ec525e2a3c24757d2444f388d">init</a> ()</td></tr>
<tr class="separator:aed89521ec525e2a3c24757d2444f388d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d039ca61131cbe7accdce277a5629a9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structWebRTCServer_1_1HttpRoute.html">HttpRoute</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#a0d039ca61131cbe7accdce277a5629a9">findHttpRoute</a> (const char *path) const</td></tr>
<tr class="separator:a0d039ca61131cbe7accdce277a5629a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74f5de3572ef64def2be980efafd45e8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structWebRTCServer_1_1WebsocketRoute.html">WebsocketRoute</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#a74f5de3572ef64def2be980efafd45e8">findWebsocketRoute</a> (const char *path) const</td></tr>
<tr class="separator:a74f5de3572ef64def2be980efafd45e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2221f9f1ba155c17f6d1f4e99057f7ba"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#a2221f9f1ba155c17f6d1f4e99057f7ba">freeRoute</a> (<a class="el" href="structWebRTCServer_1_1HttpRoute.html">HttpRoute</a> *route)</td></tr>
<tr class="separator:a2221f9f1ba155c17f6d1f4e99057f7ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e9b56063cac461e703148315bbf854e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#a5e9b56063cac461e703148315bbf854e">freeRoute</a> (<a class="el" href="structWebRTCServer_1_1WebsocketRoute.html">WebsocketRoute</a> *route)</td></tr>
<tr class="separator:a5e9b56063cac461e703148315bbf854e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7e9dc3e13c0d61c2b85819ef88fc5b7"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#ac7e9dc3e13c0d61c2b85819ef88fc5b7">printRouteInfo</a> (<a class="el" href="structWebRTCServer_1_1WebsocketRoute.html">WebsocketRoute</a> *route) const</td></tr>
<tr class="separator:ac7e9dc3e13c0d61c2b85819ef88fc5b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-static-methods"></a>
Static Protected Member Functions</h2></td></tr>
<tr class="memitem:af67a297932aefb380d6f691c23e2a4e0"><td class="memItemLeft" align="right" valign="top">static void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#af67a297932aefb380d6f691c23e2a4e0">runThread</a> (void *user_data)</td></tr>
<tr class="separator:af67a297932aefb380d6f691c23e2a4e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad44d43978599476a12539802ff434d21"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#ad44d43978599476a12539802ff434d21">onHttpRequest</a> (SoupServer *soup_server, SoupMessage *message, const char *path, GHashTable *query, SoupClientContext *client_context, void *user_data)</td></tr>
<tr class="separator:ad44d43978599476a12539802ff434d21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a495cc40be78a8cda04c03e30242ccbfa"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#a495cc40be78a8cda04c03e30242ccbfa">onHttpDefault</a> (SoupServer *soup_server, SoupMessage *message, const char *path, GHashTable *query, SoupClientContext *client_context, void *user_data)</td></tr>
<tr class="separator:a495cc40be78a8cda04c03e30242ccbfa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d50ecf2c197872b45d86adc5aeba0da"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#a7d50ecf2c197872b45d86adc5aeba0da">onWebsocketOpened</a> (SoupServer *server, SoupWebsocketConnection *connection, const char *path, SoupClientContext *client_context, void *user_data)</td></tr>
<tr class="separator:a7d50ecf2c197872b45d86adc5aeba0da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b94ce7618d8d4c7a8d4e66f674f958e"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#a0b94ce7618d8d4c7a8d4e66f674f958e">onWebsocketMessage</a> (SoupWebsocketConnection *connection, SoupWebsocketDataType data_type, GBytes *message, void *user_data)</td></tr>
<tr class="separator:a0b94ce7618d8d4c7a8d4e66f674f958e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4b1d80e74f1bcdcd5e5366ca36e50a2"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#aa4b1d80e74f1bcdcd5e5366ca36e50a2">onWebsocketClosed</a> (SoupWebsocketConnection *connection, void *user_data)</td></tr>
<tr class="separator:aa4b1d80e74f1bcdcd5e5366ca36e50a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a3afcb67c4dfc05a2cf80bac068b97146"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="structWebRTCServer_1_1HttpRoute.html">HttpRoute</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#a3afcb67c4dfc05a2cf80bac068b97146">mHttpRoutes</a></td></tr>
<tr class="separator:a3afcb67c4dfc05a2cf80bac068b97146"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67b529a7a9e37f892fb93b7409a2035f"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="structWebRTCServer_1_1WebsocketRoute.html">WebsocketRoute</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#a67b529a7a9e37f892fb93b7409a2035f">mWebsocketRoutes</a></td></tr>
<tr class="separator:a67b529a7a9e37f892fb93b7409a2035f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a357507a6bd6da2cb41e90148f226b740"><td class="memItemLeft" align="right" valign="top">SoupServer *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#a357507a6bd6da2cb41e90148f226b740">mSoupServer</a></td></tr>
<tr class="separator:a357507a6bd6da2cb41e90148f226b740"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4ec44a6d8bdcd422b38082689511c66"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#ae4ec44a6d8bdcd422b38082689511c66">mStunServer</a></td></tr>
<tr class="separator:ae4ec44a6d8bdcd422b38082689511c66"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac00aed03b4a8aa98ae5b3f5088a80f9a"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#ac00aed03b4a8aa98ae5b3f5088a80f9a">mSSLCertFile</a></td></tr>
<tr class="separator:ac00aed03b4a8aa98ae5b3f5088a80f9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a333a035d9db6dea40816f8685fda5b24"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#a333a035d9db6dea40816f8685fda5b24">mSSLKeyFile</a></td></tr>
<tr class="separator:a333a035d9db6dea40816f8685fda5b24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf3e2efff7428476b75b74f5199bc06b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#acf3e2efff7428476b75b74f5199bc06b">mHasHTTPS</a></td></tr>
<tr class="separator:acf3e2efff7428476b75b74f5199bc06b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c5e2f97d7cbd9cf4083aeff416dc5cc"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#a4c5e2f97d7cbd9cf4083aeff416dc5cc">mPort</a></td></tr>
<tr class="separator:a4c5e2f97d7cbd9cf4083aeff416dc5cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1eb643c9200b6229942cc5e7bf8c8f56"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#a1eb643c9200b6229942cc5e7bf8c8f56">mRefCount</a></td></tr>
<tr class="separator:a1eb643c9200b6229942cc5e7bf8c8f56"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a437e4568ee60de9a5e94dfe62763e2fc"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#a437e4568ee60de9a5e94dfe62763e2fc">mPeerCount</a></td></tr>
<tr class="separator:a437e4568ee60de9a5e94dfe62763e2fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a229d7bef55546e26fe49056465616831"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classThread.html">Thread</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWebRTCServer.html#a229d7bef55546e26fe49056465616831">mThread</a></td></tr>
<tr class="separator:a229d7bef55546e26fe49056465616831"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>WebRTC signalling server for establishing and negotiating connections with peers for bi-directional media streaming. </p>
<p>Users can bind routing functions that configure their pipelines dynamically to handle incoming/outgoing streams.</p>
<p>It uses websockets to handle the communication with clients for SDP offers, ICE messages, ect. </p><dl class="section see"><dt>See also</dt><dd><a href="https://doc-kurento.readthedocs.io/en/stable/_static/client-javadoc/org/kurento/client/WebRtcEndpoint.html">https://doc-kurento.readthedocs.io/en/stable/_static/client-javadoc/org/kurento/client/WebRtcEndpoint.html</a></dd></dl>
<p>By default it also serves simple HTML for viewing video streams in browsers, but for full hosting you'll want to run this alongside an actual webserver.</p>
<p>multi-stream :: multi-client :: full-duplex </p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a0a9229009aca73f62c363f879255bb38"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a9229009aca73f62c363f879255bb38">&#9670;&nbsp;</a></span>HttpListener</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef SoupServerCallback <a class="el" href="classWebRTCServer.html#a0a9229009aca73f62c363f879255bb38">WebRTCServer::HttpListener</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Function pointer to a callback for handling HTTP requests. </p>
<dl class="section see"><dt>See also</dt><dd><a href="https://developer-old.gnome.org/libsoup/stable/SoupServer.html#SoupServerCallback">https://developer-old.gnome.org/libsoup/stable/SoupServer.html#SoupServerCallback</a> </dd></dl>

</div>
</div>
<a id="a87c958251b5146e420439d6cd0ed2867"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a87c958251b5146e420439d6cd0ed2867">&#9670;&nbsp;</a></span>WebsocketListener</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void(* WebRTCServer::WebsocketListener) (<a class="el" href="structWebRTCPeer.html">WebRTCPeer</a> *peer, const char *message, size_t message_size, void *user_data)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Function pointer to a callback for handling websocket requests. </p>
<dl class="section see"><dt>See also</dt><dd>AddConnectionListener </dd></dl>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a91c2b446fe98224e7bd66693ccd19e21"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a91c2b446fe98224e7bd66693ccd19e21">&#9670;&nbsp;</a></span>WebRTCServer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">WebRTCServer::WebRTCServer </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>stun_server</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>ssl_cert_file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>ssl_key_file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>threaded</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a59493ccab3274ddd2930e903ba770f1d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a59493ccab3274ddd2930e903ba770f1d">&#9670;&nbsp;</a></span>~WebRTCServer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">WebRTCServer::~WebRTCServer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a5d584e6f650648aad396f1873984c621"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d584e6f650648aad396f1873984c621">&#9670;&nbsp;</a></span>AddRoute() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void WebRTCServer::AddRoute </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classWebRTCServer.html#a0a9229009aca73f62c363f879255bb38">HttpListener</a>&#160;</td>
          <td class="paramname"><em>callback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>user_data</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>flags</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Register a function to handle incoming http/www requests at the specified path. </p>
<p>These are for serving webpages, and should be on different paths than the websockets. If the path is "/" the callback will handle all routes. If the route for this path already exists, it will replace the existing route. To remove a route, set the callback to NULL. </p>

</div>
</div>
<a id="ab690301a156ea291d47c93a37d84ecb9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab690301a156ea291d47c93a37d84ecb9">&#9670;&nbsp;</a></span>AddRoute() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void WebRTCServer::AddRoute </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classWebRTCServer.html#a87c958251b5146e420439d6cd0ed2867">WebsocketListener</a>&#160;</td>
          <td class="paramname"><em>callback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>user_data</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>flags</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Register a function to handle incoming Websocket requests at the specified path. </p>
<p>This path often represents a media stream that can be sent/recieved, or a function for dynamically configuring streams when new clients connect.</p>
<p>If the path is "/" the callback will handle all routes. If the route for this path already exists, it will replace the existing route. To remove a route, set the callback to NULL.</p>
<p>The optional flags are WebRTCFlags OR'd together and are used for describing the stream capabilities for purposes of discovery.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__network.html#gabfc2d28deff979bf1183220b57b78bd4" title="Flags for route decorators or peer state.">WebRTCFlags</a> </dd></dl>

</div>
</div>
<a id="a49631104e63bd4368ecb0217c402b4e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a49631104e63bd4368ecb0217c402b4e7">&#9670;&nbsp;</a></span>Create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classWebRTCServer.html">WebRTCServer</a>* WebRTCServer::Create </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>port</em> = <code><a class="el" href="group__network.html#ga0168a2334e9e1e13b83a665c8cce0742">WEBRTC_DEFAULT_PORT</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>stun_server</em> = <code><a class="el" href="group__network.html#ga99b10c89b7c09a0c753f241f9e74c894">WEBRTC_DEFAULT_STUN_SERVER</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>ssl_cert</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>ssl_key</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>threaded</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a WebRTC server on this port. </p>
<p>If this port is already in use, the existing server instance will be returned. </p>

</div>
</div>
<a id="a0d039ca61131cbe7accdce277a5629a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d039ca61131cbe7accdce277a5629a9">&#9670;&nbsp;</a></span>findHttpRoute()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structWebRTCServer_1_1HttpRoute.html">HttpRoute</a>* WebRTCServer::findHttpRoute </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a74f5de3572ef64def2be980efafd45e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a74f5de3572ef64def2be980efafd45e8">&#9670;&nbsp;</a></span>findWebsocketRoute()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structWebRTCServer_1_1WebsocketRoute.html">WebsocketRoute</a>* WebRTCServer::findWebsocketRoute </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a2221f9f1ba155c17f6d1f4e99057f7ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2221f9f1ba155c17f6d1f4e99057f7ba">&#9670;&nbsp;</a></span>freeRoute() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void WebRTCServer::freeRoute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structWebRTCServer_1_1HttpRoute.html">HttpRoute</a> *&#160;</td>
          <td class="paramname"><em>route</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a5e9b56063cac461e703148315bbf854e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e9b56063cac461e703148315bbf854e">&#9670;&nbsp;</a></span>freeRoute() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void WebRTCServer::freeRoute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structWebRTCServer_1_1WebsocketRoute.html">WebsocketRoute</a> *&#160;</td>
          <td class="paramname"><em>route</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ad3927daf271af5dead4f21a9a2ff1ac3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad3927daf271af5dead4f21a9a2ff1ac3">&#9670;&nbsp;</a></span>GetSTUNServer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const char* WebRTCServer::GetSTUNServer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the STUN server being used. </p>
<p>STUN servers are used during ICE/NAT and allow a local device to determine its public IP address. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="group__network.html#ga99b10c89b7c09a0c753f241f9e74c894" title="Default STUN server used for WebRTC.">WEBRTC_DEFAULT_STUN_SERVER</a> </dd></dl>

</div>
</div>
<a id="adbcd3355338382847a31e5e49f5caf97"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adbcd3355338382847a31e5e49f5caf97">&#9670;&nbsp;</a></span>HasHTTPS()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool WebRTCServer::HasHTTPS </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Return true if the server is using HTTPS. </p>
<p>For HTTPS to be enabled, SSL cert/key files must have been provided to <a class="el" href="classWebRTCServer.html#a49631104e63bd4368ecb0217c402b4e7" title="Create a WebRTC server on this port.">WebRTCServer::Create()</a>. </p>

</div>
</div>
<a id="aed89521ec525e2a3c24757d2444f388d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aed89521ec525e2a3c24757d2444f388d">&#9670;&nbsp;</a></span>init()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool WebRTCServer::init </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a32e99e59a4d0c536e7edcfbbd2dcdaee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a32e99e59a4d0c536e7edcfbbd2dcdaee">&#9670;&nbsp;</a></span>IsThreaded()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool WebRTCServer::IsThreaded </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Return true if the server is running in it's own thread. </p>
<p>Otherwise, <a class="el" href="classWebRTCServer.html#ac49ab53764ab184efe91a8c7040be7dc" title="Process incoming requests on the server.">ProcessRequests()</a> must be called periodically. </p>

</div>
</div>
<a id="a495cc40be78a8cda04c03e30242ccbfa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a495cc40be78a8cda04c03e30242ccbfa">&#9670;&nbsp;</a></span>onHttpDefault()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void WebRTCServer::onHttpDefault </td>
          <td>(</td>
          <td class="paramtype">SoupServer *&#160;</td>
          <td class="paramname"><em>soup_server</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SoupMessage *&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GHashTable *&#160;</td>
          <td class="paramname"><em>query</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SoupClientContext *&#160;</td>
          <td class="paramname"><em>client_context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>user_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ad44d43978599476a12539802ff434d21"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad44d43978599476a12539802ff434d21">&#9670;&nbsp;</a></span>onHttpRequest()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void WebRTCServer::onHttpRequest </td>
          <td>(</td>
          <td class="paramtype">SoupServer *&#160;</td>
          <td class="paramname"><em>soup_server</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SoupMessage *&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GHashTable *&#160;</td>
          <td class="paramname"><em>query</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SoupClientContext *&#160;</td>
          <td class="paramname"><em>client_context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>user_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aa4b1d80e74f1bcdcd5e5366ca36e50a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa4b1d80e74f1bcdcd5e5366ca36e50a2">&#9670;&nbsp;</a></span>onWebsocketClosed()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void WebRTCServer::onWebsocketClosed </td>
          <td>(</td>
          <td class="paramtype">SoupWebsocketConnection *&#160;</td>
          <td class="paramname"><em>connection</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>user_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a0b94ce7618d8d4c7a8d4e66f674f958e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b94ce7618d8d4c7a8d4e66f674f958e">&#9670;&nbsp;</a></span>onWebsocketMessage()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void WebRTCServer::onWebsocketMessage </td>
          <td>(</td>
          <td class="paramtype">SoupWebsocketConnection *&#160;</td>
          <td class="paramname"><em>connection</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SoupWebsocketDataType&#160;</td>
          <td class="paramname"><em>data_type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GBytes *&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>user_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a7d50ecf2c197872b45d86adc5aeba0da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d50ecf2c197872b45d86adc5aeba0da">&#9670;&nbsp;</a></span>onWebsocketOpened()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void WebRTCServer::onWebsocketOpened </td>
          <td>(</td>
          <td class="paramtype">SoupServer *&#160;</td>
          <td class="paramname"><em>server</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SoupWebsocketConnection *&#160;</td>
          <td class="paramname"><em>connection</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SoupClientContext *&#160;</td>
          <td class="paramname"><em>client_context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>user_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ac7e9dc3e13c0d61c2b85819ef88fc5b7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac7e9dc3e13c0d61c2b85819ef88fc5b7">&#9670;&nbsp;</a></span>printRouteInfo()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string WebRTCServer::printRouteInfo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structWebRTCServer_1_1WebsocketRoute.html">WebsocketRoute</a> *&#160;</td>
          <td class="paramname"><em>route</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ac49ab53764ab184efe91a8c7040be7dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac49ab53764ab184efe91a8c7040be7dc">&#9670;&nbsp;</a></span>ProcessRequests()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool WebRTCServer::ProcessRequests </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>blocking</em> = <code>false</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><a class="el" href="classProcess.html" title="Static functions for retrieving information about the running process.">Process</a> incoming requests on the server. </p>
<p>If set to blocking, the function can wait indefinitely for requests. This should only be called externally if the server was created with threaded=false </p>

</div>
</div>
<a id="aeb70147a334c7f4aa526523707d316b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb70147a334c7f4aa526523707d316b9">&#9670;&nbsp;</a></span>Release()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void WebRTCServer::Release </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Release a reference to the server instance. </p>
<p>Server will be shut down when the reference count reaches zero. </p>

</div>
</div>
<a id="af67a297932aefb380d6f691c23e2a4e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af67a297932aefb380d6f691c23e2a4e0">&#9670;&nbsp;</a></span>runThread()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void* WebRTCServer::runThread </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>user_data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="acf3e2efff7428476b75b74f5199bc06b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acf3e2efff7428476b75b74f5199bc06b">&#9670;&nbsp;</a></span>mHasHTTPS</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool WebRTCServer::mHasHTTPS</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a3afcb67c4dfc05a2cf80bac068b97146"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3afcb67c4dfc05a2cf80bac068b97146">&#9670;&nbsp;</a></span>mHttpRoutes</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;<a class="el" href="structWebRTCServer_1_1HttpRoute.html">HttpRoute</a>*&gt; WebRTCServer::mHttpRoutes</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a437e4568ee60de9a5e94dfe62763e2fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a437e4568ee60de9a5e94dfe62763e2fc">&#9670;&nbsp;</a></span>mPeerCount</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t WebRTCServer::mPeerCount</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a4c5e2f97d7cbd9cf4083aeff416dc5cc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c5e2f97d7cbd9cf4083aeff416dc5cc">&#9670;&nbsp;</a></span>mPort</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t WebRTCServer::mPort</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a1eb643c9200b6229942cc5e7bf8c8f56"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1eb643c9200b6229942cc5e7bf8c8f56">&#9670;&nbsp;</a></span>mRefCount</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t WebRTCServer::mRefCount</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a357507a6bd6da2cb41e90148f226b740"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a357507a6bd6da2cb41e90148f226b740">&#9670;&nbsp;</a></span>mSoupServer</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">SoupServer* WebRTCServer::mSoupServer</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ac00aed03b4a8aa98ae5b3f5088a80f9a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac00aed03b4a8aa98ae5b3f5088a80f9a">&#9670;&nbsp;</a></span>mSSLCertFile</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string WebRTCServer::mSSLCertFile</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a333a035d9db6dea40816f8685fda5b24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a333a035d9db6dea40816f8685fda5b24">&#9670;&nbsp;</a></span>mSSLKeyFile</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string WebRTCServer::mSSLKeyFile</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ae4ec44a6d8bdcd422b38082689511c66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae4ec44a6d8bdcd422b38082689511c66">&#9670;&nbsp;</a></span>mStunServer</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string WebRTCServer::mStunServer</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a229d7bef55546e26fe49056465616831"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a229d7bef55546e26fe49056465616831">&#9670;&nbsp;</a></span>mThread</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classThread.html">Thread</a>* WebRTCServer::mThread</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a67b529a7a9e37f892fb93b7409a2035f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a67b529a7a9e37f892fb93b7409a2035f">&#9670;&nbsp;</a></span>mWebsocketRoutes</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;<a class="el" href="structWebRTCServer_1_1WebsocketRoute.html">WebsocketRoute</a>*&gt; WebRTCServer::mWebsocketRoutes</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>jetson-utils/<a class="el" href="WebRTCServer_8h_source.html">WebRTCServer.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="classWebRTCServer.html">WebRTCServer</a></li>
    <li class="footer">Generated on Fri Mar 17 2023 14:29:30 for Jetson Inference by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
